-- GENERATED SPELL FOR [Avruu] --


function spell0_17084(pUnit, Event) --@Dark Mending,Heal--
pUnit:FullCastSpellOnTarget(16588,pUnit)
pUnit:RegisterEvent('Sorts_17084', 3500, 1)
end

function spell1_17084(pUnit, Event) --@Judgement of Darkness,n/a--
pUnit:FullCastSpellOnTarget(34112,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17084', 15302, 1)
end

function Sorts_17084(pUnit, Event)
local choix_sorts_17084 = math.random(0, 1)
if choix_sorts_17084 == 0 then
pUnit:RegisterEvent('spell0_17084', 1, 1)
end
if choix_sorts_17084 == 1 then
pUnit:RegisterEvent('spell1_17084', 1, 1)
end
end

function mob17084_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17084', math.random(1500, 3000), 1)
end

function mob17084_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17084_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17084_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17084, 1, 'mob17084_Action')
RegisterUnitEvent(17084, 2, 'mob17084_Leave')
RegisterUnitEvent(17084, 3, 'mob17084_Kill')
RegisterUnitEvent(17084, 4, 'mob17084_Die')
